import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'home',
    component: HomeView
  },
  {
    path: '/cate',
    name: 'cate',
    component: () => import('../views/CateView.vue')
  },
  {
    path: '/acr',
    name: 'acr',
    component: () => import('../views/AcrhiveView.vue')
  },
  {
    path: '/tag',
    name: 'tag',
    component: () => import('../views/TagView.vue')
  },
  {
    path: '/TextView',
    name: 'TextView',
    component: () => import('../views/TextView.vue')
  },
  {
    path: '/TagTextView',
    name: 'TagTextView',
    component: () => import('../views/TagTextView.vue')
  },
  {
    path: '/CateTextView',
    name: 'CateTextView',
    component: () => import('../views/CateTextView.vue')
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
